﻿using com.ytocargo.Core.BackgroundJobInfos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.ytocargo.Application.BackgroundJobInfos
{
    public interface IBackgroundJobInfoServices
    {
        Task<BackgroundJobInfo> UpdateAsync(BackgroundJobInfo jobInfo);

        Task DeleteAsync(BackgroundJobInfo jobInfo);

        Task InsertAsync(BackgroundJobInfo jobInfo);

        Task<List<BackgroundJobInfo>> GetWaitingJobsAsync(int maxCount);

        Task CheckTodayJobByJobType(Type type);

        Task<int> CountTodayJobbyJobType(Type type);
    }
}
